package com.yonyou.gmmc.service.pointactivity.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 答题记录模型
 * @author zutao
 *
 */

@Table(name = "TT_QNE_RESULT")
public class TtQneResult {
	@Id
	@Column(name = "REPLAY_ID")
	@GeneratedValue(generator = "JDBC")
	@SequenceGenerator(name = "", sequenceName = "SEQ_TT_QNE_RESULT")
	private Long replayId;//答题记录id

	@Column(name = "QNE_ID")
	private Long qneId;//问卷id

	@Column(name = "QTN_ID")
	private Long qtnId;//问题id

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "SUBMIT_TIME")
	private Date submitTime;//提交答案时间

	@Column(name = "OWNER_ID")
	private Long ownerId;//客户id

	@Column(name = "USER_ANSWER")
	private String userAnswer;//客户答案内容

	@Column(name = "ANSWER_NO")
	private Integer answerNo;//客户答案

	@Column(name = "USER_QNE_REF_ID")
	private Long userQneRefId;//客户对应问卷id

	public Long getReplayId() {
		return replayId;
	}

	public void setReplayId(Long replayId) {
		this.replayId = replayId;
	}

	public Long getQneId() {
		return qneId;
	}

	public void setQneId(Long qneId) {
		this.qneId = qneId;
	}

	public Long getQtnId() {
		return qtnId;
	}

	public void setQtnId(Long qtnId) {
		this.qtnId = qtnId;
	}

	public Date getSubmitTime() {
		return submitTime;
	}

	public void setSubmitTime(Date submitTime) {
		this.submitTime = submitTime;
	}

	public Long getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(Long ownerId) {
		this.ownerId = ownerId;
	}

	public String getUserAnswer() {
		return userAnswer;
	}

	public void setUserAnswer(String userAnswer) {
		this.userAnswer = userAnswer;
	}

	public Integer getAnswerNo() {
		return answerNo;
	}

	public void setAnswerNo(Integer answerNo) {
		this.answerNo = answerNo;
	}

	public Long getUserQneRefId() {
		return userQneRefId;
	}

	public void setUserQneRefId(Long userQneRefId) {
		this.userQneRefId = userQneRefId;
	}

}
